-
Notifications
You must be signed in to change notification settings - Fork 35
[POC] trim #1318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[POC] trim #1318
Conversation
include/umf/pools/pool_disjoint.h
Outdated
/// @param pool handle to the memory pool. | ||
/// @param minSlabsToKeep minimum number of slabs to keep. | ||
/// @return UMF_RESULT_SUCCESS on success or appropriate error code on failure. | ||
umf_result_t umfDisjointPoolTrimMemory(void *pool, size_t minSlabsToKeep); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we do it thru ctl?
include/umf/pools/pool_disjoint.h
Outdated
/// @param pool handle to the memory pool. | ||
/// @param minSlabsToKeep minimum number of slabs to keep. | ||
/// @return UMF_RESULT_SUCCESS on success or appropriate error code on failure. | ||
umf_result_t umfDisjointPoolTrimMemory(void *pool, size_t minSlabsToKeep); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How this API is going to be used? And why is it disjoint pool specific?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we are trying to stabilize the API before the 1.0 release, we should review such changes at the UMF tech meeting first.
I mean draft PR is OK, but let’s discuss before merge
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
6de8410
to
6a3ae03
Compare
4a3b48f
to
4dee8a2
Compare
umfDisjointPoolTrimMemory needed for L0 POC